<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>图片的显示与隐藏</title>
</head>
<body>
    <div id="pic">
        <input type="button" value="王嘉尔的照片" @click="Show"><br>
        <img src="images/W1.JPG" alt="" height="400px" v-show="bring">
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        var pic=new Vue({
            el:"#pic",
            data:{
                bring:true 
            },
            methods:{
                Show:function(){
                    this.bring=!this.bring;
                }
            }
        })
    </script>
</body>
</html>